.datepicker {
  position: relative;
  width: 300px;
  &-input {
    width: 100%;
    height: 34px;
    opacity: 1;
    background: #ffffff;
    border: 1px solid #d8dbe4;
    padding: 0 6px;
    border-radius: 4px;
    z-index: 2021;
    position: relative;
    &-focus {
      border-color:  @primary-color;
    }
    input {
      border: none;
      outline: none;
      line-height: 34px;
      width: calc(100% - 17px);
    }
    .iconcalendar {
      font-size: 14px;
      color: @primary-1;
      &:hover {
        color: @primary-color-hover;
      }
    }
  }
  &-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    input {
      cursor: not-allowed;
    }
    .iconcalendar {
      font-size: 14px;
      color: @primary-1;
      &:hover {
        color: @primary-1;
      }
    }
  }
  &-plate {
    z-index: 2021;
    display: none;
    margin-top: 4px;
    position: absolute;
    font-size: 14px;
    width: 450px;
    height: 312px;
    overflow: hidden;
    vertical-align: top;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 3px 6px -4px #0000001f, 0 6px 16px #00000014,
      0 9px 28px 8px #0000000d;
    transition: margin 0.3s;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
      Helvetica Neue, Arial, Noto Sans, sans-serif, apple color emoji,
      segoe ui emoji, Segoe UI Symbol, noto color emoji;
  }
  &-session {
    height: 267px;
    width: 100%;
    display: flex;
  }
  &-date {
    width: 281px;
    height: 100%;
    &-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 8px;
      color: #000;
      border-bottom: 1px solid #f0f0f0;
      height: 40px;
      &-item {
        width: 44px;
        color: rgba(0, 0, 0, 0.25);
        .icondoubleright,
        .iconfontright {
          transform: rotate(180deg);
        }
        .iconfont {
          width: 50%;
          height: 100%;
          display: inline-block;
          cursor: pointer;
          font-size: 12px;
          &:hover {
            color: #000;
          }
        }
        &-disabled {
          cursor: not-allowed;
        }
      }
      &-title {
        display: flex;
        justify-content: center;
        > span {
          margin-right: 8px;
          cursor: pointer;
          &:hover {
            color: #007aff;
          }
        }
        > span:last-child {
          margin-right: 0;
        }
      }
    }
    &-list {
      padding: 8px 12px;
      box-sizing: border-box;
      width: 100%;
      height: calc(100% - 40px);
    }
  }
  &-time {
    border-left: 1px solid #f0f0f0;
    width: calc(100% - 281px);
    box-sizing: border-box;
    height: 100%;
    &-head {
      font-weight: 500;
      line-height: 40px;
      text-align: center;
      border-bottom: 1px solid #f0f0f0;
      height: 40px;
      box-sizing: border-box;
    }
    &-session {
      height: calc(100% - 40px);
      display: flex;
      > div {
        border-left: 1px solid #f0f0f0;
      }
      > div:first-child {
        border-left: none;
      }
    }
  }
  // 底部
  &-footer {
    height: 44px;
    width: 100%;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 12px;
    &-new {
      color: #007aff;
      cursor: pointer;
    }
    &-submit {
      height: 24px;
      padding: 0 7px;
      font-size: 14px;
      border-radius: 2px;
      display: inline-block;
      line-height: 24px;
      text-align: center;
      cursor: pointer;
      background-color: #007aff;
      color: #fff;
      &:hover {
        opacity: 0.6;
      }
    }
  }
  //
  &-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2020;
  }
}
